﻿#include "AVLTree.h"

#include <vector>;

int main()
{
	int N = 1000000;
	AVLTree<int, int> hash;
	vector<int> arr(N);
	srand(time(nullptr));
	for (int i = 0; i < N; i++) arr[i] = rand() + i;

	//vector<int> arr({ 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 });

	for (auto& x : arr)
	{
		hash.Insert({ x,x });
	}
	//hash.InOrder();
	cout << hash.IsAVTree() << endl;
	cout << hash.size() << endl;
	cout << hash.height() << endl;


	return 0;
}